<?php

namespace app\store\validate;

use think\Validate;

class PickValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'contact_phone' => 'require|mobile',
        'contact_name' => 'require'
    ];


    protected $message = [
        'name.require' => '自提点名称不能为空',
        'contact_phone.require' => '联系电话不能为空',
        'contact_phone.mobile' => '电话格式有误',
        'contact_name.require' => '联系人不能为空',
    ];


    protected $scene = [
        'add'  =>  ['name', 'contact_phone', 'contact_name'],
    ];   
}